package cn.jtool.dig.server.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ConnectionInfoDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 连接ID
     */
    private long id;
    /**
     * 源IP
     */
    private String sourceIp;
    /**
     * 源端口
     */
    private Integer sourcePort;
    /**
     * 连接时间
     */
    private Date connectTime;
    /**
     * 接收字节数
     */
    private Long recByteNumber;
    /**
     * 发送字节数
     */
    private Long sendByteNumber;
}
